import request from '@/utils/request'

/**
* 采集曲线数据分页查询
* @param {查询条件} data
*/
export function listCksCollectedCurveData(query) {
  return request({
    url: 'business/CksCollectedCurveData/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增采集曲线数据
* @param data
*/
export function addCksCollectedCurveData(data) {
  return request({
    url: 'business/CksCollectedCurveData',
    method: 'post',
    data: data,
  })
}
/**
* 修改采集曲线数据
* @param data
*/
export function updateCksCollectedCurveData(data) {
  return request({
    url: 'business/CksCollectedCurveData',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取采集曲线数据详情
* @param {Id}
*/
export function getCksCollectedCurveData(id) {
  return request({
    url: 'business/CksCollectedCurveData/' + id,
    method: 'get'
  })
}

/**
* 删除采集曲线数据
* @param {主键} pid
*/
export function delCksCollectedCurveData(pid) {
  return request({
    url: 'business/CksCollectedCurveData/delete/' + pid,
    method: 'delete'
  })
}
